import { http } from '@/utils/http'
import type { GoodsResult } from '../types/goods'
import type { GoodsItem } from '@/types/global'

export const getGoodsApi = (id: string) => {
  return http<GoodsResult & GoodsItem>({
    url: '/goods',
    method: 'GET',
    data: { id: id },
  })
}
